﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShoppingWebSite
{
    public partial class ShopSite : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnShopName_Click(object sender, EventArgs e)
        {
            Response.Redirect("homeWeb.aspx?ProductName=" + txtShopName.Text.ToString());
        }
        public string LogInName()
        {
            if(Session["UserName"] == null)
            {
                return "未登录";
            }
            else
            {
                return Session["UserName"].ToString();
            }
        }
    }
}